<template>
  <div class="not-found-container">
    <el-card class="not-found-card">
      <div class="content">
        <div class="error-code">404</div>
        <div class="error-message">页面未找到</div>
        <div class="error-description">
          抱歉，您访问的页面不存在或已被移除
        </div>
        
        <div class="actions">
          <el-button type="primary" size="large" @click="$router.push('/')">
            返回首页
          </el-button>
          <el-button size="large" @click="$router.go(-1)">
            返回上页
          </el-button>
        </div>
      </div>
    </el-card>
  </div>
</template>

<script setup lang="ts">
// 404页面不需要特殊的逻辑
</script>

<style scoped>
.not-found-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
}

.not-found-card {
  width: 100%;
  max-width: 500px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.content {
  padding: 60px 40px;
}

.error-code {
  font-size: 120px;
  font-weight: 700;
  color: #409EFF;
  line-height: 1;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.error-message {
  font-size: 32px;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
}

.error-description {
  font-size: 16px;
  color: #666;
  margin-bottom: 40px;
  line-height: 1.6;
}

.actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .content {
    padding: 40px 20px;
  }
  
  .error-code {
    font-size: 80px;
  }
  
  .error-message {
    font-size: 24px;
  }
  
  .error-description {
    font-size: 14px;
  }
  
  .actions {
    flex-direction: column;
    align-items: center;
  }
  
  .actions .el-button {
    width: 200px;
  }
}

@media (max-width: 480px) {
  .not-found-card {
    margin: 0 10px;
  }
  
  .content {
    padding: 30px 20px;
  }
  
  .error-code {
    font-size: 60px;
  }
  
  .error-message {
    font-size: 20px;
  }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
  .not-found-card {
    background: #1a1a1a;
    border-color: #333;
  }
  
  .error-message {
    color: #fff;
  }
  
  .error-description {
    color: #999;
  }
}
</style>
